package com.nbsaas.boot.shopArticle.rest.convert;

import com.nbsaas.boot.shopArticle.data.entity.ShopArticleDocument;
import com.nbsaas.boot.shopArticle.api.domain.response.ShopArticleDocumentResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 实体对象转化成响应对象
*/

public class ShopArticleDocumentResponseConvert  implements Converter<ShopArticleDocumentResponse,ShopArticleDocument> {

    @Override
    public ShopArticleDocumentResponse convert(ShopArticleDocument source) {
        ShopArticleDocumentResponse  result = new  ShopArticleDocumentResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

